//
//  BaseViewController.m
//  GoBigMarket
//
//  Created by legend on 16/8/3.
//  Copyright © 2016年 legend. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //状态栏样式
    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)
     
                                                         forBarMetrics:UIBarMetricsDefault];
    
    //取消半透明
    self.navigationController.navigationBar.translucent = NO;
    [self setNavi];
}
#pragma mark -
- (void)setNavi {
    //116. 192. 48
    //设置tabbar的背景颜色
    self.navigationController.tabBarController.tabBar.barTintColor = XNColor(240, 240, 240, 1);
    //tabbar的颜色
    self.navigationController.tabBarController.tabBar.tintColor = XNColor(138, 184, 52, 1);
    //nav背景颜色
    self.navigationController.navigationBar.barTintColor = XNColor(138, 184, 52, 1);;
    //nav的title字体富文本
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    //navBar的颜色
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
}
#pragma mark -
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
